<?php if ( post_password_required() ) : ?>
<section id="comments">
				<p class="nopassword">Denna rapport är lösenordsskyddad (detta kan vara av säkerhetsskäl).</p>
			</section><!-- #comments -->
<?php
		/* Stop the rest of comments.php from being processed,
		 * but don't kill the script entirely -- we still have
		 * to fully load the template.
		 */
		return;
	endif;
?>

<?php if ( have_comments() ) : ?>
			<h2 id="comments-title">Uppföljning <span>(<?php comments_number('Inga inlägg', 'Ett inlägg', '% inlägg' );?>)</span></h2>

<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
			<nav class="navigation">
				<div class="nav-previous"><?php previous_comments_link( '<span class="meta-nav">&larr;</span> Äldre inlägg' ); ?></div>
				<div class="nav-next"><?php next_comments_link( 'Nyare inlägg <span class="meta-nav">&rarr;</span>' ); ?></div>
			</nav> <!-- .navigation -->
<?php endif; // check for comment navigation ?>

<section id="comments">
<ol class="commentlist">
				<?php
					wp_list_comments( array( 'callback' => 'trac_comments' ) );
				?>
			</ol>
</section><!-- #comments -->

<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
			<nav class="navigation">
				<div class="nav-previous"><?php previous_comments_link( '<span class="meta-nav">&larr;</span> Äldre inlägg' ); ?></div>
				<div class="nav-next"><?php next_comments_link( 'Nyare inlägg <span class="meta-nav">&rarr;</span>' ); ?></div>
			</nav><!-- .navigation -->
<?php endif; // check for comment navigation ?>

<?php else : // or, if we don't have comments:

	/* If there are no comments and comments are closed,
	 * let's leave a little note, shall we?
	 */
	if ( ! comments_open() ) :
?>
<?php endif; // end ! comments_open() ?>

<?php endif; // end have_comments() ?>

<div id="respond">
<?php if ('open' == $post->comment_status) : ?>

<h2 id="reply-title"><?php comment_form_title('Kommentera', 'Svar till %s'); ?></h2>

<div class="cancel-comment-reply">
	<?php cancel_comment_reply_link(); ?>
</div>

<div id="follow-up">

<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>Du m&aring;ste vara <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">inloggad</a> f&ouml;r att kunna posta kommentarer.</p>
<?php else : ?>

<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">

<?php if ( $user_ID ) : ?>

<div class="logged-in-as">Du är inloggad som <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Logga ut">Logga ut?</a></div>

<?php else : ?>

<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> /> <label for="author">Namn*</label></p>

<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> /> <label for="email">E-post*</label></p>

<?php endif; ?>

<script type="text/javascript">edToolbar('comment-text');</script>
<p><textarea name="comment" id="comment-text" cols="100%" rows="10" tabindex="4"></textarea></p>

<p><input name="submit" type="submit" id="submit" tabindex="5" value="Posta" />
<?php comment_id_fields(); ?>
</p>
<?php do_action('comment_form', $post->ID); ?>

</form>

<?php endif; // If registration required and not logged in ?>
</div>
<?php endif; // if you delete this the sky will fall on your head ?>
</div>
